package com.zmn.mcc.business.interfaces.role;

import com.zmn.common.dto.LoginStaff;
import com.zmn.common.dto2.ResponseDTO;
import com.zmn.mcc.model.entity.role.McRolePermit;

import java.util.List;

/**
 * @author heguanghua
 * @since 2020/04/14 22:56
 */
public interface RolePermitBService {

    /**
     * 修改角色拥有的权限
     *
     * @param rolePermits
     * @return
     */
    ResponseDTO modifyRolePermit(List<McRolePermit> rolePermits);

    /**
     * 添加权限角色
     *
     * @param permitId   permitId
     * @param roleIds    roleIds
     * @param loginStaff loginStaff
     * @param ip         ip
     */
    void addRolePermit(Integer permitId, List<Integer> roleIds, LoginStaff loginStaff, String ip);
}
